﻿<?xml version="1.0" encoding="utf-8" ?>

<cls:class
	name="ControlPacket"
	type="http://metalx.org/Network/Internet/Control/ControlPacket"
	xmlns="http://metalx.org/Program"
	xmlns:cls="http://metalx.org/Class"
	xmlns:obj="http://metalx.org/i386/Functions/Object"
	xmlns:int="http://metalx.org/i386/Functions/Integer"
	xmlns:byte="http://metalx.org/i386/Functions/Byte"
	xmlns:short="http://metalx.org/i386/Functions/Short"
	xmlns:hex="http://metalx.org/i386/Functions/Hexadecimal"
	xmlns:lst="http://metalx.org/i386/Functions/List"
	xmlns:str="http://metalx.org/i386/Functions/String"
	xmlns:mm="http://metalx.org/i386/Functions/MemoryManager"
	xmlns:clsf="http://metalx.org/i386/Functions/Class"
	xmlns:pcif="http://metalx.org/i386/Functions/Pci"
	xmlns:net="http://metalx.org/i386/Functions/Network"
	xmlns:var="http://metalx.org/Variable"
	xmlns:sys="http://metalx.org/i386/Functions/System"
	xmlns:cat="http://metalx.org/i386/Functions/Catalog"
	xmlns:asc="http://metalx.org/Ansi/Ascii"
	xmlns:pci="http://metalx.org/Pc/Pci/Ports"
	xmlns:cfg="http://metalx.org/Pc/Pci/Configuration"
	xmlns:ari="http://metalx.org/Intel/80386/Arithmetic"
	xmlns:math="http://metalx.org/Intel/80386/Math"
	xmlns:imm="http://metalx.org/Intel/80386/Immediate"
	xmlns:index="http://metalx.org/Intel/80386/Index"
	xmlns:shift="http://metalx.org/Intel/80386/Shift"
	xmlns:cpu="http://metalx.org/Intel/80386/Operators"
	xmlns:op="http://metalx.org/Intel/80386/Operands">

	<cls:field name="NetworkPacket" offset="0" type="http://metalx.org/Network/NetworkPacket"/>
	<cls:field name="InternetPacket" offset="0" type="http://metalx.org/Network/Internet/InternetPacket"/>

	<cls:method name="Create" type="http://metalx.org/Network/Internet/Control/ControlPacket" static="true">
		<cls:parameter name="SourceNetworkAddress" type="http://metalx.org/Network/NetworkAddress"/>
		
		<mm:CheckOut length="290"/>
		
		<!--Write Network Header-->

		<!--Destination Network Address-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddress/>
		<hex>ff</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>1</byte>
		<hex>ff</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>2</byte>
		<hex>ff</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>3</byte>
		<hex>ff</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>4</byte>
		<hex>ff</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>5</byte>
		<hex>ff</hex>

		<!--Source Network Address-->
		<cpu:ExchangeOperandWithRegister/>
		<op:SP-BPRegister/>

		<cpu:PullSIFromStack/>

		<cpu:ExchangeOperandWithRegister/>
		<op:SP-BPRegister/>

		<obj:GetData/>

		<cpu:PushSIToStack/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>6</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>7</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>8</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>9</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>10</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>11</byte>
		
		<!--Type-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>12</byte>
		<hex>08</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>13</byte>
		<hex>00</hex>

		<!--Write IP Header-->

		<!--Version and Header Length-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>14</byte>
		<hex>45</hex>

		<!--Code Point and Congestion-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>15</byte>
		<hex>00</hex>

		<!--Total Length (276)-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>16</byte>
		<hex>01</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>17</byte>
		<hex>14</hex>

		<!--Identification-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>18</byte>
		<hex>00</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>19</byte>
		<hex>00</hex>

		<!--Flags and Fragmentation Offset (Do Not Fragment)-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>20</byte>
		<hex>40</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>21</byte>
		<hex>00</hex>

		<!--Time To Live (16)-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>22</byte>
		<hex>10</hex>

		<!--Protocol (UDP)-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>23</byte>
		<hex>11</hex>

		<!--Header Checksum-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>24</byte>
		<hex>00</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>25</byte>
		<hex>00</hex>

		<!--Source IP Address-->
		<cpu:CopyImmediateToOperandFunction/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>26</byte>
		<hex>00000000</hex>

		<!--Destination IP Address-->
		<cpu:CopyImmediateToOperandFunction/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>30</byte>
		<hex>ffffffff</hex>
		
		<!--Write UDP Header-->

		<!--Source Port-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>34</byte>
		<hex>00</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>35</byte>
		<byte>68</byte>

		<!--Destination Port-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>36</byte>
		<hex>00</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>37</byte>
		<byte>67</byte>

		<!--Length (1466)-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>38</byte>
		<hex>01</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>39</byte>
		<hex>00</hex>

		<!--Checksum-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>40</byte>
		<hex>00</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>41</byte>
		<hex>00</hex>

		<!--Write DHCP Packet-->

		<!--Operation-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>42</byte>
		<hex>01</hex>

		<!--Hardware Type-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>43</byte>
		<hex>01</hex>

		<!--Hardware Address Length-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>44</byte>
		<hex>06</hex>

		<!--Hops-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>45</byte>
		<hex>00</hex>

		<!--Transaction ID-->
		<cpu:CopyImmediateToOperandFunction/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>46</byte>
		<hex>1234abcd</hex>

		<!--Wait Time-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>50</byte>
		<hex>00</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>51</byte>
		<hex>00</hex>

		<!--Flags-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>52</byte>
		<hex>00</hex>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>53</byte>
		<hex>01</hex>

		<!--Client IP Address-->
		<cpu:CopyImmediateToOperandFunction/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>54</byte>
		<hex>00000000</hex>

		<!--Client IP Address-->
		<cpu:CopyImmediateToOperandFunction/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>58</byte>
		<hex>00000000</hex>

		<!--Client IP Address-->
		<cpu:CopyImmediateToOperandFunction/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>62</byte>
		<hex>00000000</hex>

		<!--Client IP Address-->
		<cpu:CopyImmediateToOperandFunction/>
		<imm:CopyImmediateToDIAddressPlusImmediate8/>
		<byte>66</byte>
		<hex>00000000</hex>

		<!--Client Network Address-->
		<cpu:PullSIFromStack/>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>70</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>71</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>72</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>73</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>74</byte>

		<cpu:CopySIAddressToALAndIncrementSI/>

		<cpu:CopyRegisterToOperand8/>
		<op:AL-DIAddressPlusImmediate8/>
		<byte>75</byte>

		<!--Magic Number-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate/>
		<int>278</int>
		<byte>99</byte>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate/>
		<int>279</int>
		<byte>130</byte>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate/>
		<int>280</int>
		<byte>83</byte>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate/>
		<int>281</int>
		<byte>99</byte>
		
		<!--DHCP Message Type (Discover)-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate/>
		<int>282</int>
		<byte>53</byte>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate/>
		<int>283</int>
		<byte>1</byte>

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate/>
		<int>284</int>
		<byte>1</byte>
		<!--<byte>3</byte>-->

		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate/>
		<int>286</int>
		<byte>0</byte>

		<!--End Of Options-->
		<cpu:CopyImmediateToOperandFunction8/>
		<imm:CopyImmediateToDIAddressPlusImmediate/>
		<int>285</int>
		<byte>255</byte>

		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<cpu:PushDIToStack/>

		<net:CalculateIpChecksum/>

		<cpu:PullDIFromStack/>

		<cpu:ExchangeOperandWithRegister8/>
		<op:AL-AHRegister/>

		<cpu:Operand16/>
		<cpu:CopyRegisterToOperand/>
		<op:AX-DIAddressPlusImmediate8/>
		<byte>24</byte>

		<obj:Create length="290"/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetOperation" type="http://metalx.org/Byte">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>22</byte>

		<byte:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetHardwareType" type="http://metalx.org/Hexadecimal">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>23</byte>

		<byte:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetHardwareAddressLength" type="http://metalx.org/Hexadecimal">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>24</byte>

		<byte:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetHops" type="http://metalx.org/Hexadecimal">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>25</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>22</byte>

		<byte:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetTransactionID" type="http://metalx.org/Hexadecimal">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:CopyOperandToRegister/>
		<op:AX-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>26</byte>

		<hex:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetWaitTime" type="http://metalx.org/Short">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>30</byte>

		<short:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetFlags" type="http://metalx.org/Hexadecimal">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>32</byte>

		<hex:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetClientIPAddress" type="http://metalx.org/Network/Internet/InternetAddress">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:ShiftRegisterByImmediate8Function/>
		<shift:ShiftAXRegisterLeft/>
		<byte>2</byte>

		<cpu:AddImmediateToAX/>
		<int>34</int>

		<cpu:CopyRegisterToOperand/>
		<op:AX-DIRegister/>

		<cpu:AddRegisterToOperand/>
		<op:SI-DIRegister/>

		<cpu:PushDIToStack/>

		<!--<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>50</byte>-->

		<cpu:CopyImmediateToDI/>
		<addressOf ref="className" type="Absolute32"/>

		<sys:GetCatalog/>

		<cat:FindType/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-BXRegister/>

		<cpu:PullDIFromStack/>

		<obj:Create length="4"/>

		<cpu:ReturnToNearCaller/>

		<var:string id="className">http://metalx.org/Network/Internet/InternetAddress</var:string>
	</cls:method>

	<cls:method name="GetYourIPAddress" type="http://metalx.org/Network/Internet/InternetAddress">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:ShiftRegisterByImmediate8Function/>
		<shift:ShiftAXRegisterLeft/>
		<byte>2</byte>

		<cpu:AddImmediateToAX/>
		<int>38</int>

		<cpu:CopyRegisterToOperand/>
		<op:AX-DIRegister/>

		<cpu:AddRegisterToOperand/>
		<op:SI-DIRegister/>

		<cpu:PushDIToStack/>

		<!--<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>50</byte>-->

		<cpu:CopyImmediateToDI/>
		<addressOf ref="className" type="Absolute32"/>

		<sys:GetCatalog/>

		<cat:FindType/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-BXRegister/>

		<cpu:PullDIFromStack/>

		<obj:Create length="4"/>

		<cpu:ReturnToNearCaller/>

		<var:string id="className">http://metalx.org/Network/Internet/InternetAddress</var:string>
	</cls:method>

	<cls:method name="GetServerIPAddress" type="http://metalx.org/Network/Internet/InternetAddress">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:ShiftRegisterByImmediate8Function/>
		<shift:ShiftAXRegisterLeft/>
		<byte>2</byte>

		<cpu:AddImmediateToAX/>
		<int>42</int>

		<cpu:CopyRegisterToOperand/>
		<op:AX-DIRegister/>

		<cpu:AddRegisterToOperand/>
		<op:SI-DIRegister/>

		<cpu:PushDIToStack/>

		<!--<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>50</byte>-->

		<cpu:CopyImmediateToDI/>
		<addressOf ref="className" type="Absolute32"/>

		<sys:GetCatalog/>

		<cat:FindType/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-BXRegister/>

		<cpu:PullDIFromStack/>

		<obj:Create length="4"/>

		<cpu:ReturnToNearCaller/>

		<var:string id="className">http://metalx.org/Network/Internet/InternetAddress</var:string>
	</cls:method>

	<cls:method name="GetGatewayIPAddress" type="http://metalx.org/Network/Internet/InternetAddress">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:ShiftRegisterByImmediate8Function/>
		<shift:ShiftAXRegisterLeft/>
		<byte>2</byte>

		<cpu:AddImmediateToAX/>
		<int>46</int>

		<cpu:CopyRegisterToOperand/>
		<op:AX-DIRegister/>

		<cpu:AddRegisterToOperand/>
		<op:SI-DIRegister/>

		<cpu:PushDIToStack/>

		<!--<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>50</byte>-->

		<cpu:CopyImmediateToDI/>
		<addressOf ref="className" type="Absolute32"/>

		<sys:GetCatalog/>

		<cat:FindType/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-BXRegister/>

		<cpu:PullDIFromStack/>

		<obj:Create length="4"/>

		<cpu:ReturnToNearCaller/>

		<var:string id="className">http://metalx.org/Network/Internet/InternetAddress</var:string>
	</cls:method>

	<cls:method name="GetClientNetworkAddress" type="http://metalx.org/Network/NetworkAddress">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:ShiftRegisterByImmediate8Function/>
		<shift:ShiftAXRegisterLeft/>
		<byte>2</byte>

		<cpu:AddImmediateToAX/>
		<int>50</int>

		<cpu:CopyRegisterToOperand/>
		<op:AX-DIRegister/>

		<cpu:AddRegisterToOperand/>
		<op:SI-DIRegister/>

		<cpu:PushDIToStack/>

		<!--<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>50</byte>-->

		<cpu:CopyImmediateToDI/>
		<addressOf ref="className" type="Absolute32"/>

		<sys:GetCatalog/>

		<cat:FindType/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-BXRegister/>

		<cpu:PullDIFromStack/>

		<obj:Create length="6"/>

		<cpu:ReturnToNearCaller/>

		<var:string id="className">http://metalx.org/Network/NetworkAddress</var:string>
	</cls:method>

	<cls:method name="GetServerName" type="http://metalx.org/Hexadecimal">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:ShiftRegisterByImmediate8Function/>
		<shift:ShiftAXRegisterLeft/>
		<byte>2</byte>

		<cpu:AddImmediateToAX/>
		<int>56</int>

		<cpu:AddRegisterToOperand/>
		<op:AX-SIRegister/>

		<!--<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>50</byte>-->

		<mm:CheckOut length="68"/>

		<cpu:PushDIToStack/>

		<cpu:CopyImmediateToAX/>
		<int>64</int>

		<cpu:CopyAXToDIAddressAndIncrementDI/>
		
		<cpu:CopyRegisterToOperand/>
		<op:AX-CXRegister/>

		<cpu:Repeat/>
		<cpu:CopySIAddressToDIAddressAndIncrementSIAndDI8/>

		<cpu:PullDIFromStack/>

		<str:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetBootFileName" type="http://metalx.org/Hexadecimal">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetData/>

		<cpu:CopyOperandToRegister8/>
		<op:AL-SIAddressPlusImmediate8/>
		<byte>14</byte>

		<cpu:AndAXWithImmediate/>
		<hex>0000000f</hex>

		<cpu:ShiftRegisterByImmediate8Function/>
		<shift:ShiftAXRegisterLeft/>
		<byte>2</byte>

		<cpu:AddImmediateToAX/>
		<int>120</int>

		<cpu:AddRegisterToOperand/>
		<op:AX-SIRegister/>

		<!--<cpu:CopyOperandToRegister8/>
		<op:AL-IndexAddressPlusImmediate8/>
		<index:AXTimesFourPlusSI/>
		<byte>50</byte>-->

		<mm:CheckOut length="132"/>

		<cpu:PushDIToStack/>

		<cpu:CopyImmediateToAX/>
		<int>128</int>

		<cpu:CopyAXToDIAddressAndIncrementDI/>

		<cpu:CopyRegisterToOperand/>
		<op:AX-CXRegister/>

		<cpu:Repeat/>
		<cpu:CopySIAddressToDIAddressAndIncrementSIAndDI8/>

		<cpu:PullDIFromStack/>

		<str:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="ToString" type="http://metalx.org/String">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetType/>

		<clsf:GetName/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-DIRegister/>

		<str:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetClass" type="http://metalx.org/Class">
		<cpu:CopyRegisterToOperand/>
		<op:DI-SIRegister/>

		<obj:GetType/>

		<cpu:CopyRegisterToOperand/>
		<op:SI-DIRegister/>

		<clsf:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>

	<cls:method name="GetClass" type="http://metalx.org/Class" static="true">
		<cpu:CopyRegisterToOperand/>
		<op:BX-DIRegister/>

		<clsf:CreateObject/>

		<cpu:ReturnToNearCaller/>
	</cls:method>
</cls:class>